<html>
    <head>
        <title>iPET</title>
		<meta name="layout" content="install" />
    </head>
    <body>
    <div id="text">
        <div class="body">
            <h2>Dados do grupo PET</h2>
            <h3>Passo 1 de 2</h3>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <g:hasErrors bean="${petInstance}">
            <div class="errors">
                <g:renderErrors bean="${petInstance}" as="list" />
            </div>
            </g:hasErrors>
            <g:form action="step1" method="post">
                <div class="dialog">
                    <table>
                        <tbody>
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="institute"><g:message code="pet.institute.label" default="Instituto" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: petInstance, field: 'institute', 'errors')}">
                                    <g:textField name="institute" value="${petInstance?.institute}" />
                                </td>
                            </tr>
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="acronym"><g:message code="pet.acronym.label" default="Sigla" /></label>
                                </td>
                                <td valign="top" class="min value ${hasErrors(bean: petInstance, field: 'acronym', 'errors')}">
                                    <g:textField name="acronym" value="${petInstance?.acronym}" />
                                </td>
                            </tr>
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="course"><g:message code="pet.course.label" default="Curso" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: petInstance, field: 'course', 'errors')}">
                                    <g:textField name="course" value="${petInstance?.course}" />
                                </td>
                            </tr>
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="cre"><g:message code="pet.cre.label" default="CRE mínimo" /></label>
                                </td>
                                <td valign="top" class="min value ${hasErrors(bean: petInstance, field: 'cre', 'errors')}">
                                	<g:textField name="cre" value="${fieldValue(bean: petInstance, field: 'cre')}" />
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </div>
                <div class="buttons">
                    <g:submitButton name="create" class="save" value="Próximo" />
                </div>
            </g:form>
        </div>
    </div>
    </body>
</html>